<?php
/**
 * @file newsinfo.php
 * @author LinLin
 * @date 2017年1月17日 下午6:28:58
 * @brief 
 */

namespace haibao\cms\model\data;

Class NewsInfo extends Base{


    /**
     * 文章ID
     */
    public $Id;

    /**
     * 单品ID(productModel表)
     */
    public $Title;
    /**
     * 文章单页内容ID
     */
    public $Content;

    public $CreateBy;
    
    public $CreateTime;
    
    public $UserInfo;

    public function __construct(){
        parent::__construct();

        $this->stringField('Title', 'Title',true);
        $this->stringField('Content', 'Content',true);
        $this->intField('CreateBy', 'CreateBy',true);
        $this->dateField('CreateTime', 'CreateTime',true);

        $this->setTableName('NewsInfo');
    }
}